<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBridgeDetailsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('bridge_details', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('bridge_id')->default(0)->comment('古桥ID');
            $table->string('bridge_name')->comment('名称');
            $table->string('couplet')->comment('桥联');
            $table->string('adorn')->comment('桥饰');
            $table->text('introduction')->comment('古桥简介');
            $table->text('journal')->comment('历代桥志');
            $table->text('heritage_list')->comment('遗产名录');
            $table->text('attractions')->comment('古桥景点');
            $table->text('bridge_type')->comment('桥梁形式');
            $table->text('feature')->comment('技艺特点');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('bridge_details');
    }
}
